<template>
    <div>
       <h1 ref="boxRef">Hello World</h1>
    </div>
</template>

<script>
export default {
    created(){
        this.$nextTick(()=>{
            console.log('DOM元素',this.$refs.boxRef);
        })
       
    }
}
</script>

<style>

</style>